<script setup>
import { onMounted } from "vue";

import { getGatewayInfo } from "@/api/system";
import { title } from "@/utils/common";

onMounted(() => {
  getGatewayInfo().then(res => {
    if (res.code === 200) {
      title.value = "LIoT Gateway | " + res.data.name
    }
  })
})
</script>

<template>
  <router-view />
</template>

<style lang="scss">
body, html, #app {
  height: 100%;
  width: 100%;
}
</style>
